package com.zoe.mallserver.config;

import com.zoe.vhr.enums.MailConfigEnum;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Zoe.Zhang
 * @Date: 2021/08/14
 * @Description
 */
@Configuration
public class RabbitQueConfig {
    @Bean
    Queue queue() {
        return new Queue(MailConfigEnum.MAIL_QUEUE_NAME);
    }
}
